package com.zhuzhe.blog.system.service;

import com.zhuzhe.blog.base.ResponseData;
import com.zhuzhe.blog.system.entity.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuzhe.blog.system.requestDto.SysMenuDto;
import com.zhuzhe.blog.system.responseVo.SysMenuListVo;

import java.util.List;

/**
 * <p>
 * 菜单信息表 服务类
 * </p>
 *
 * @author u53
 * @since 2020-10-13
 */
public interface ISysMenuService extends IService<SysMenu> {


    /**
     * 条件查询菜单列表
     * @author   whh
     * @param sysMenuDto
     * @return      com.zhuzhe.blog.base.ResponseData<com.baomidou.mybatisplus.core.metadata.IPage<com.zhuzhe.blog.system.entity.SysMenu>>
     * @exception
     * @date        2020/10/14 20:32
     */
    ResponseData<SysMenuListVo> queryList(SysMenuDto sysMenuDto);


    /**
     * 根据菜单id删除菜单
     * @author   whh
     * @param id
     * @return      com.zhuzhe.blog.base.ResponseData<java.lang.Integer>
     * @exception   
     * @date        2020/10/14 21:14
     */
    ResponseData<Integer> deleteById(String id);


    ResponseData<SysMenu> viewMenu(String id);

    ResponseData<Integer> updateMenu(SysMenuDto sysMenuDto);

    /**
     * 通过用户id查询所拥有的权限信息
     * @param userId
     * @return
     */
    List<SysMenu> findByUserId(String userId);
}
